<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<title>大话骰</title>
<link href="css/g.css" type="text/css" rel="stylesheet" />
</head>
<body onselectstart="return false;">
<div class="view">
	<div class="main">
		<canvas id="mainCanvas" width="600" height="600"></canvas>
		<canvas id="rollCanvas" width="218" height="190" style="top:200px;left:182px;display:none"></canvas>
		<div class="roll-select">
			<ul>
				<li style="background-image:url(images/s1_0.png)" sn=1></li>
				<li style="background-image:url(images/s2_0.png)" sn=2></li>
				<li style="background-image:url(images/s3_0.png)" sn=3></li>
				<li style="background-image:url(images/s4_0.png)" sn=4></li>
				<li style="background-image:url(images/s5_0.png)" sn=5></li>
				<li style="background-image:url(images/s6_0.png)" sn=6></li>
			</ul>
			<span></span>
			<div class="btn-box">
				<a onClick="UI.callSelectRoll();" style="background-image:url(images/btn_call.png);"></a>
				<a onClick="UI.reSetSelectRoll()" style="background-image:url(images/btn_reset.png);"></a>
			</div>
		</div>
		<canvas id="playerCanvas" width="110" height="600"></canvas>
		<div align="center" class="tip-box mask">
			<img src="" width="400" style="margin-top:100px" />
		</div>
		<div class="cp say">哈哈,我赢定了</div>
		<div class="up say">做梦吧 你</div>
	</div>
	<div class="record">
		<div>
			<a style="background-image:url(images/logo.png);width:100px;height:84px"></a>
			<a style="background-image:url(images/btn_quit.png);width:75px;height:23px;" onClick="UI.quitGame();"></a>
		</div>
		<ul>
			<!-- <li>
				<span class="usr-name">me:</span>
				<p>喊6个6</p>
			</li>
			<li>
				<span class="usr-name">色女郎:</span>
				<p>开</p>
			</li> -->
		</ul>
		<div>
			<a style="background-image:url(images/btn_bang.png);width:200px;height:250px"  onClick="UI.bang()"></a>
		</div>
	</div>
	<div class="start">
		<div class="icon"></div>
		<audio src="sound/start_background_music.mp3" autoplay="autoplay"></audio>
		<a class="btn" onClick="UI.startGame();"></a>
	</div>
	<div class="result lost" style="display:none">
		<a class="btn" onClick="UI.startGame();"></a>
	</div>
	<audio src="" autoplay="true"></audio>
</div>
<span id="tip"></span>
<br>
<script type="text/javascript" src="js/dquery.js"></script>
<script type="text/javascript" src="js/autoRole.js"></script>
<script type="text/javascript" src="js/gameRole.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/logic.js"></script>
<script type="text/javascript">

function gameRoleHand(){
	var a = document.getElementById("num11").value;
	var b = document.getElementById("num2").value;
	gameRoleHandFunc(a,b);
}

function gameRoleOpen(){
	//var a = document.getElementById("num1").value;
	//var b = document.getElementById("num2").value;
	//game.gameRole.handValue=[a,b];
	game.gameRole.open();
}

function gameReStart(){
	game.play();
}
</script>

</body>
</html>